<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="viewport-fit=cover" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover" />
	<title></title>

	<link rel="apple-touch-icon" href="/src/assets/touch-icon-iphone.png">
	<link rel="apple-touch-icon" sizes="152x152" href="/src/assets/touch-icon-ipad.png">
	<link rel="apple-touch-icon" sizes="180x180" href="/src/assets/touch-icon-iphone-retina.png">
	<link rel="apple-touch-icon" sizes="167x167" href="/src/assets/touch-icon-ipad-retina.png">
	<link rel="apple-touch-startup-image" href="/src/assets/startup.png">

	<meta name="apple-mobile-web-app-title" content="test">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
</head>

<body>
	<div id="app"></div>
	<script type="module" src="/src/main.js"></script>
	<script>
		//iOS Web APP中点击链接跳转到Safari 浏览器新标签页的问题 devework.com
		//stanislav.it/how-to-prevent-ios-standalone-mode-web-apps-from-opening-links-in-safari
		if (("standalone" in window.navigator) && window.navigator.standalone) {
			var noddy, remotes = false;
			document.addEventListener('click', function (event) {
				noddy = event.target;
				while (noddy.nodeName !== "A" && noddy.nodeName !== "HTML") {
					noddy = noddy.parentNode;
				}
				if ('href' in noddy && noddy.href.indexOf('http') !== -1 && (noddy.href.indexOf(document.location
						.host) !== -1 || remotes)) {
					event.preventDefault();
					document.location.href = noddy.href;
				}
			}, false);
		}
	</script>
</body>

</html>